#coding:utf-8
'''
Created on 2015年7月6日

@author: Administrator
'''
# line='sfsdfasdf;sfadssfsf,sdfasafsf,sdaf,sdafassa  foo'
# import re
# print re.split(r'[;,\s]\s*', line)
# 
# import urllib
# import time
# import re
# 
# #lc = ['']*38
# 
# con = urllib.urlopen('http://zq.win007.com/cn/League/2014-2015/36.html').read()
# #print con
# #i = 0
# lct = con.find(r'<td bgcolor="#DFEAF6">36</td>')
# print lct
filenames=['makefile','foo.c','bar.py','spam.c','spam.h']
print [name for name in filenames if name.endswith(('.c','.h'))]


















